.class public Lcom/estrongs/android/pop/esclasses/i;
.super Ljava/lang/Object;
.source "ESLayoutResourceHandler.java"


# static fields
.field private static c:[I

.field private static d:[I

.field private static e:[I

.field private static f:I

.field private static g:I

.field private static h:I

.field private static i:I

.field private static j:I

.field private static k:I

.field private static l:I

.field private static m:I

.field private static n:I

.field private static o:I

.field private static p:I


# instance fields
.field private a:Landroid/content/Context;

.field private b:Z


# direct methods
.method static constructor <clinit>()V
    .locals 1

    const/16 v0, 0x44

    new-array v0, v0, [I

    .line 1
    fill-array-data v0, :array_0

    sput-object v0, Lcom/estrongs/android/pop/esclasses/i;->c:[I

    const/16 v0, 0x4c

    new-array v0, v0, [I

    .line 2
    fill-array-data v0, :array_1

    sput-object v0, Lcom/estrongs/android/pop/esclasses/i;->d:[I

    const/16 v0, 0xa

    new-array v0, v0, [I

    .line 3
    fill-array-data v0, :array_2

    sput-object v0, Lcom/estrongs/android/pop/esclasses/i;->e:[I

    const/16 v0, 0x8

    .line 4
    sput v0, Lcom/estrongs/android/pop/esclasses/i;->f:I

    const/16 v0, 0x12

    .line 5
    sput v0, Lcom/estrongs/android/pop/esclasses/i;->g:I

    const/16 v0, 0x13

    .line 6
    sput v0, Lcom/estrongs/android/pop/esclasses/i;->h:I

    const v0, 0x1010084

    .line 7
    sput v0, Lcom/estrongs/android/pop/esclasses/i;->i:I

    const/4 v0, 0x5

    .line 8
    sput v0, Lcom/estrongs/android/pop/esclasses/i;->j:I

    const/4 v0, 0x0

    .line 9
    sput v0, Lcom/estrongs/android/pop/esclasses/i;->k:I

    const/16 v0, 0xc

    .line 10
    sput v0, Lcom/estrongs/android/pop/esclasses/i;->l:I

    const/16 v0, 0x30

    .line 11
    sput v0, Lcom/estrongs/android/pop/esclasses/i;->m:I

    const/16 v0, 0x31

    .line 12
    sput v0, Lcom/estrongs/android/pop/esclasses/i;->n:I

    const/16 v0, 0x32

    .line 13
    sput v0, Lcom/estrongs/android/pop/esclasses/i;->o:I

    const/16 v0, 0x33

    .line 14
    sput v0, Lcom/estrongs/android/pop/esclasses/i;->p:I

    return-void

    nop

    :array_0
    .array-data 4
        0x1010063
        0x1010064
        0x1010065
        0x1010066
        0x1010067
        0x1010068
        0x1010069
        0x101007f
        0x10100d0
        0x10100d1
        0x10100d2
        0x10100d3
        0x10100d4
        0x10100d5
        0x10100d6
        0x10100d7
        0x10100d8
        0x10100d9
        0x10100da
        0x10100db
        0x10100dc
        0x10100dd
        0x10100de
        0x10100df
        0x10100e0
        0x10100e1
        0x10100e2
        0x10100e3
        0x10100e4
        0x10100e5
        0x10100e6
        0x10100e7
        0x10100e8
        0x10100e9
        0x101013f
        0x1010140
        0x1010215
        0x1010216
        0x101024e
        0x101025e
        0x101026f
        0x1010273
        0x10102a8
        0x10102a9
        0x10102aa
        0x10102c1
        0x10102c4
        0x101031f
        0x1010320
        0x1010321
        0x1010322
        0x1010323
        0x1010324
        0x1010325
        0x1010326
        0x1010327
        0x1010328
        0x1010334
        0x101033c
        0x1010354
        0x10103a5
        0x10103aa
        0x10103e9
        0x10103ea
        0x10103eb
        0x10103ec
        0x10103ed
        0x10103ee
    .end array-data

    :array_1
    .array-data 4
        0x101000e
        0x1010034
        0x1010095
        0x1010096
        0x1010097
        0x1010098
        0x1010099
        0x101009a
        0x101009b
        0x10100ab
        0x10100af
        0x10100b0
        0x10100b1
        0x101011f
        0x1010120
        0x101013f
        0x1010140
        0x101014e
        0x101014f
        0x1010150
        0x1010151
        0x1010152
        0x1010153
        0x1010154
        0x1010155
        0x1010156
        0x1010157
        0x1010158
        0x1010159
        0x101015a
        0x101015b
        0x101015c
        0x101015d
        0x101015e
        0x101015f
        0x1010160
        0x1010161
        0x1010162
        0x1010163
        0x1010164
        0x1010165
        0x1010166
        0x1010167
        0x1010168
        0x1010169
        0x101016a
        0x101016b
        0x101016c
        0x101016d
        0x101016e
        0x101016f
        0x1010170
        0x1010171
        0x1010217
        0x1010218
        0x101021d
        0x1010220
        0x1010223
        0x1010224
        0x1010264
        0x1010265
        0x1010266
        0x10102c5
        0x10102c6
        0x10102c7
        0x1010314
        0x1010315
        0x1010316
        0x101035e
        0x101035f
        0x1010362
        0x1010374
        0x101038c
        0x1010392
        0x1010393
        0x10103ac
    .end array-data

    :array_2
    .array-data 4
        0x1010119
        0x101011d
        0x101011e
        0x101011f
        0x1010120
        0x1010121
        0x1010122
        0x1010123
        0x101031c
        0x10103f2
    .end array-data
.end method

.method public constructor <init>(Les/tp;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    invoke-interface {p1}, Les/tp;->f()Landroid/content/Context;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/android/pop/esclasses/i;->a:Landroid/content/Context;

    .line 3
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object p1

    invoke-virtual {p1}, Lcom/estrongs/android/ui/theme/b;->o()Z

    move-result p1

    iput-boolean p1, p0, Lcom/estrongs/android/pop/esclasses/i;->b:Z

    return-void
.end method

.method private a(Ljava/lang/String;Landroid/util/AttributeSet;Landroid/view/View;)Landroid/view/View;
    .locals 8

    const-string v0, "view"

    .line 21
    invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_0

    const/4 p1, 0x0

    const-string v0, "class"

    .line 22
    invoke-interface {p2, p1, v0}, Landroid/util/AttributeSet;->getAttributeValue(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    .line 23
    :cond_0
    iget-object p1, p0, Lcom/estrongs/android/pop/esclasses/i;->a:Landroid/content/Context;

    sget-object v0, Lcom/estrongs/android/pop/esclasses/i;->c:[I

    const/4 v1, 0x0

    invoke-virtual {p1, p2, v0, v1, v1}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;

    move-result-object p1

    .line 24
    sget v0, Lcom/estrongs/android/pop/esclasses/i;->f:I

    const/4 v2, -0x1

    invoke-virtual {p1, v0, v2}, Landroid/content/res/TypedArray;->getResourceId(II)I

    move-result v0

    if-ne v0, v2, :cond_1

    .line 25
    invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V

    return-object p3

    .line 26
    :cond_1
    invoke-virtual {p3, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    if-nez v0, :cond_2

    .line 27
    invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V

    return-object p3

    .line 28
    :cond_2
    iget-boolean p3, p0, Lcom/estrongs/android/pop/esclasses/i;->b:Z

    if-nez p3, :cond_5

    .line 29
    new-instance p3, Landroid/util/TypedValue;

    invoke-direct {p3}, Landroid/util/TypedValue;-><init>()V

    .line 30
    sget v2, Lcom/estrongs/android/pop/esclasses/i;->l:I

    invoke-virtual {p1, v2, p3}, Landroid/content/res/TypedArray;->getValue(ILandroid/util/TypedValue;)Z

    .line 31
    iget v2, p3, Landroid/util/TypedValue;->resourceId:I

    if-lez v2, :cond_5

    .line 32
    iget-object v2, p0, Lcom/estrongs/android/pop/esclasses/i;->a:Landroid/content/Context;

    invoke-virtual {v2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    iget v3, p3, Landroid/util/TypedValue;->resourceId:I

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getResourceTypeName(I)Ljava/lang/String;

    move-result-object v2

    .line 33
    invoke-virtual {v0}, Landroid/view/View;->getPaddingLeft()I

    move-result v3

    .line 34
    invoke-virtual {v0}, Landroid/view/View;->getPaddingTop()I

    move-result v4

    .line 35
    invoke-virtual {v0}, Landroid/view/View;->getPaddingRight()I

    move-result v5

    .line 36
    invoke-virtual {v0}, Landroid/view/View;->getPaddingBottom()I

    move-result v6

    const-string v7, "drawable"

    .line 37
    invoke-virtual {v2, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v7

    if-eqz v7, :cond_3

    .line 38
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object v2

    iget p3, p3, Landroid/util/TypedValue;->resourceId:I

    invoke-virtual {v2, p3}, Lcom/estrongs/android/ui/theme/b;->c(I)Landroid/graphics/drawable/Drawable;

    move-result-object p3

    invoke-virtual {v0, p3}, Landroid/view/View;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    goto :goto_0

    :cond_3
    const-string v7, "color"

    .line 39
    invoke-virtual {v2, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_4

    .line 40
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object v2

    iget p3, p3, Landroid/util/TypedValue;->resourceId:I

    invoke-virtual {v2, p3}, Lcom/estrongs/android/ui/theme/b;->a(I)I

    move-result p3

    invoke-virtual {v0, p3}, Landroid/view/View;->setBackgroundColor(I)V

    .line 41
    :cond_4
    :goto_0
    invoke-virtual {v0, v3, v4, v5, v6}, Landroid/view/View;->setPadding(IIII)V

    .line 42
    :cond_5
    invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V

    .line 43
    instance-of p1, v0, Landroid/widget/TextView;

    if-eqz p1, :cond_f

    .line 44
    iget-object p1, p0, Lcom/estrongs/android/pop/esclasses/i;->a:Landroid/content/Context;

    sget-object p3, Lcom/estrongs/android/pop/esclasses/i;->d:[I

    sget v2, Lcom/estrongs/android/pop/esclasses/i;->i:I

    .line 45
    invoke-virtual {p1, p2, p3, v2, v1}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;

    move-result-object p1

    .line 46
    new-instance p2, Landroid/util/TypedValue;

    invoke-direct {p2}, Landroid/util/TypedValue;-><init>()V

    .line 47
    sget p3, Lcom/estrongs/android/pop/esclasses/i;->g:I

    invoke-virtual {p1, p3, p2}, Landroid/content/res/TypedArray;->getValue(ILandroid/util/TypedValue;)Z

    .line 48
    iget p2, p2, Landroid/util/TypedValue;->resourceId:I

    if-lez p2, :cond_6

    .line 49
    move-object p3, v0

    check-cast p3, Landroid/widget/TextView;

    iget-object v2, p0, Lcom/estrongs/android/pop/esclasses/i;->a:Landroid/content/Context;

    invoke-virtual {v2, p2}, Landroid/content/Context;->getText(I)Ljava/lang/CharSequence;

    move-result-object p2

    invoke-virtual {p3, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 50
    :cond_6
    new-instance p2, Landroid/util/TypedValue;

    invoke-direct {p2}, Landroid/util/TypedValue;-><init>()V

    .line 51
    sget p3, Lcom/estrongs/android/pop/esclasses/i;->h:I

    invoke-virtual {p1, p3, p2}, Landroid/content/res/TypedArray;->getValue(ILandroid/util/TypedValue;)Z

    .line 52
    iget p2, p2, Landroid/util/TypedValue;->resourceId:I

    if-lez p2, :cond_7

    .line 53
    move-object p3, v0

    check-cast p3, Landroid/widget/TextView;

    iget-object v2, p0, Lcom/estrongs/android/pop/esclasses/i;->a:Landroid/content/Context;

    invoke-virtual {v2, p2}, Landroid/content/Context;->getText(I)Ljava/lang/CharSequence;

    move-result-object p2

    invoke-virtual {p3, p2}, Landroid/widget/TextView;->setHint(Ljava/lang/CharSequence;)V

    .line 54
    :cond_7
    iget-boolean p2, p0, Lcom/estrongs/android/pop/esclasses/i;->b:Z

    if-nez p2, :cond_e

    .line 55
    new-instance p2, Landroid/util/TypedValue;

    invoke-direct {p2}, Landroid/util/TypedValue;-><init>()V

    .line 56
    sget p3, Lcom/estrongs/android/pop/esclasses/i;->j:I

    invoke-virtual {p1, p3, p2}, Landroid/content/res/TypedArray;->getValue(ILandroid/util/TypedValue;)Z

    .line 57
    iget p3, p2, Landroid/util/TypedValue;->resourceId:I

    if-lez p3, :cond_8

    .line 58
    move-object p3, v0

    check-cast p3, Landroid/widget/TextView;

    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object v2

    iget p2, p2, Landroid/util/TypedValue;->resourceId:I

    invoke-virtual {v2, p2}, Lcom/estrongs/android/ui/theme/b;->a(I)I

    move-result p2

    invoke-virtual {p3, p2}, Landroid/widget/TextView;->setTextColor(I)V

    .line 59
    :cond_8
    move-object p2, v0

    check-cast p2, Landroid/widget/TextView;

    invoke-virtual {p2}, Landroid/widget/TextView;->getCompoundDrawables()[Landroid/graphics/drawable/Drawable;

    move-result-object p3

    .line 60
    aget-object v2, p3, v1

    const/4 v3, 0x3

    const/4 v4, 0x2

    const/4 v5, 0x1

    if-nez v2, :cond_9

    aget-object v2, p3, v5

    if-nez v2, :cond_9

    aget-object v2, p3, v4

    if-nez v2, :cond_9

    aget-object v2, p3, v3

    if-eqz v2, :cond_e

    .line 61
    :cond_9
    new-instance v2, Landroid/util/TypedValue;

    invoke-direct {v2}, Landroid/util/TypedValue;-><init>()V

    .line 62
    sget v6, Lcom/estrongs/android/pop/esclasses/i;->o:I

    invoke-virtual {p1, v6, v2}, Landroid/content/res/TypedArray;->getValue(ILandroid/util/TypedValue;)Z

    .line 63
    iget v6, v2, Landroid/util/TypedValue;->resourceId:I

    if-lez v6, :cond_a

    .line 64
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object v6

    iget v2, v2, Landroid/util/TypedValue;->resourceId:I

    invoke-virtual {v6, v2}, Lcom/estrongs/android/ui/theme/b;->b(I)Landroid/graphics/drawable/Drawable;

    move-result-object v2

    aput-object v2, p3, v1

    const/4 v2, 0x1

    goto :goto_1

    :cond_a
    const/4 v2, 0x0

    .line 65
    :goto_1
    new-instance v6, Landroid/util/TypedValue;

    invoke-direct {v6}, Landroid/util/TypedValue;-><init>()V

    .line 66
    sget v7, Lcom/estrongs/android/pop/esclasses/i;->m:I

    invoke-virtual {p1, v7, v6}, Landroid/content/res/TypedArray;->getValue(ILandroid/util/TypedValue;)Z

    .line 67
    iget v7, v6, Landroid/util/TypedValue;->resourceId:I

    if-lez v7, :cond_b

    .line 68
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object v2

    iget v6, v6, Landroid/util/TypedValue;->resourceId:I

    invoke-virtual {v2, v6}, Lcom/estrongs/android/ui/theme/b;->b(I)Landroid/graphics/drawable/Drawable;

    move-result-object v2

    aput-object v2, p3, v5

    const/4 v2, 0x1

    .line 69
    :cond_b
    new-instance v6, Landroid/util/TypedValue;

    invoke-direct {v6}, Landroid/util/TypedValue;-><init>()V

    .line 70
    sget v7, Lcom/estrongs/android/pop/esclasses/i;->p:I

    invoke-virtual {p1, v7, v6}, Landroid/content/res/TypedArray;->getValue(ILandroid/util/TypedValue;)Z

    .line 71
    iget v7, v6, Landroid/util/TypedValue;->resourceId:I

    if-lez v7, :cond_c

    .line 72
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object v2

    iget v6, v6, Landroid/util/TypedValue;->resourceId:I

    invoke-virtual {v2, v6}, Lcom/estrongs/android/ui/theme/b;->b(I)Landroid/graphics/drawable/Drawable;

    move-result-object v2

    aput-object v2, p3, v4

    const/4 v2, 0x1

    .line 73
    :cond_c
    new-instance v6, Landroid/util/TypedValue;

    invoke-direct {v6}, Landroid/util/TypedValue;-><init>()V

    .line 74
    sget v7, Lcom/estrongs/android/pop/esclasses/i;->n:I

    invoke-virtual {p1, v7, v6}, Landroid/content/res/TypedArray;->getValue(ILandroid/util/TypedValue;)Z

    .line 75
    iget v7, v6, Landroid/util/TypedValue;->resourceId:I

    if-lez v7, :cond_d

    .line 76
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object v2

    iget v6, v6, Landroid/util/TypedValue;->resourceId:I

    invoke-virtual {v2, v6}, Lcom/estrongs/android/ui/theme/b;->b(I)Landroid/graphics/drawable/Drawable;

    move-result-object v2

    aput-object v2, p3, v3

    const/4 v2, 0x1

    :cond_d
    if-eqz v2, :cond_e

    .line 77
    aget-object v1, p3, v1

    aget-object v2, p3, v5

    aget-object v4, p3, v4

    aget-object p3, p3, v3

    invoke-virtual {p2, v1, v2, v4, p3}, Landroid/widget/TextView;->setCompoundDrawables(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V

    .line 78
    :cond_e
    invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V

    goto :goto_2

    .line 79
    :cond_f
    iget-boolean p1, p0, Lcom/estrongs/android/pop/esclasses/i;->b:Z

    if-nez p1, :cond_11

    instance-of p1, v0, Landroid/widget/ImageView;

    if-eqz p1, :cond_11

    .line 80
    iget-object p1, p0, Lcom/estrongs/android/pop/esclasses/i;->a:Landroid/content/Context;

    sget-object p3, Lcom/estrongs/android/pop/esclasses/i;->e:[I

    .line 81
    invoke-virtual {p1, p2, p3, v1, v1}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;

    move-result-object p1

    .line 82
    new-instance p2, Landroid/util/TypedValue;

    invoke-direct {p2}, Landroid/util/TypedValue;-><init>()V

    .line 83
    sget p3, Lcom/estrongs/android/pop/esclasses/i;->k:I

    invoke-virtual {p1, p3, p2}, Landroid/content/res/TypedArray;->getValue(ILandroid/util/TypedValue;)Z

    .line 84
    iget p3, p2, Landroid/util/TypedValue;->resourceId:I

    if-lez p3, :cond_10

    .line 85
    move-object p3, v0

    check-cast p3, Landroid/widget/ImageView;

    .line 86
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object v1

    iget p2, p2, Landroid/util/TypedValue;->resourceId:I

    invoke-virtual {v1, p2}, Lcom/estrongs/android/ui/theme/b;->c(I)Landroid/graphics/drawable/Drawable;

    move-result-object p2

    invoke-virtual {p3, p2}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 87
    :cond_10
    invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V

    goto :goto_2

    .line 88
    :cond_11
    instance-of p1, v0, Landroidx/appcompat/widget/Toolbar;

    if-eqz p1, :cond_12

    .line 89
    move-object p1, v0

    check-cast p1, Landroidx/appcompat/widget/Toolbar;

    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object p2

    const p3, 0x7f060252

    invoke-virtual {p2, p3}, Lcom/estrongs/android/ui/theme/b;->a(I)I

    move-result p2

    invoke-virtual {p1, p2}, Landroidx/appcompat/widget/Toolbar;->setTitleTextColor(I)V

    :cond_12
    :goto_2
    return-object v0
.end method

.method private a(Lorg/xmlpull/v1/XmlPullParser;Landroid/util/AttributeSet;Landroid/view/View;)V
    .locals 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lorg/xmlpull/v1/XmlPullParserException;,
            Ljava/io/IOException;
        }
    .end annotation

    const-string v0, "layout"

    const/4 v1, 0x0

    const/4 v2, 0x0

    .line 90
    invoke-interface {p2, v1, v0, v2}, Landroid/util/AttributeSet;->getAttributeResourceValue(Ljava/lang/String;Ljava/lang/String;I)I

    move-result v2

    if-nez v2, :cond_1

    .line 91
    invoke-interface {p2, v1, v0}, Landroid/util/AttributeSet;->getAttributeValue(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    if-nez p1, :cond_0

    .line 92
    new-instance p1, Landroid/view/InflateException;

    const-string p2, "You must specifiy a layout in the include tag: <include layout=\"@layout/layoutID\" />"

    invoke-direct {p1, p2}, Landroid/view/InflateException;-><init>(Ljava/lang/String;)V

    throw p1

    .line 93
    :cond_0
    new-instance p2, Landroid/view/InflateException;

    new-instance p3, Ljava/lang/StringBuilder;

    invoke-direct {p3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v0, "You must specifiy a valid layout reference. The layout ID "

    invoke-virtual {p3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p1, " is not valid."

    invoke-virtual {p3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-direct {p2, p1}, Landroid/view/InflateException;-><init>(Ljava/lang/String;)V

    throw p2

    .line 94
    :cond_1
    iget-object p2, p0, Lcom/estrongs/android/pop/esclasses/i;->a:Landroid/content/Context;

    .line 95
    invoke-virtual {p2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object p2

    invoke-virtual {p2, v2}, Landroid/content/res/Resources;->getLayout(I)Landroid/content/res/XmlResourceParser;

    move-result-object p2

    .line 96
    :try_start_0
    invoke-static {p2}, Landroid/util/Xml;->asAttributeSet(Lorg/xmlpull/v1/XmlPullParser;)Landroid/util/AttributeSet;

    move-result-object v0

    .line 97
    :goto_0
    invoke-interface {p2}, Landroid/content/res/XmlResourceParser;->next()I

    move-result v1

    const/4 v2, 0x1

    const/4 v3, 0x2

    if-eq v1, v3, :cond_2

    if-eq v1, v2, :cond_2

    goto :goto_0

    :cond_2
    if-ne v1, v3, :cond_6

    .line 98
    invoke-interface {p2}, Landroid/content/res/XmlResourceParser;->getName()Ljava/lang/String;

    move-result-object v1

    const-string v3, "merge"

    .line 99
    invoke-virtual {v3, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_3

    .line 100
    invoke-direct {p0, p2, v0, p3}, Lcom/estrongs/android/pop/esclasses/i;->b(Lorg/xmlpull/v1/XmlPullParser;Landroid/util/AttributeSet;Landroid/view/View;)V

    goto :goto_1

    .line 101
    :cond_3
    invoke-direct {p0, v1, v0, p3}, Lcom/estrongs/android/pop/esclasses/i;->a(Ljava/lang/String;Landroid/util/AttributeSet;Landroid/view/View;)Landroid/view/View;

    move-result-object p3

    .line 102
    invoke-direct {p0, p2, v0, p3}, Lcom/estrongs/android/pop/esclasses/i;->b(Lorg/xmlpull/v1/XmlPullParser;Landroid/util/AttributeSet;Landroid/view/View;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 103
    :goto_1
    invoke-interface {p2}, Landroid/content/res/XmlResourceParser;->close()V

    .line 104
    invoke-interface {p1}, Lorg/xmlpull/v1/XmlPullParser;->getDepth()I

    move-result p2

    .line 105
    :goto_2
    invoke-interface {p1}, Lorg/xmlpull/v1/XmlPullParser;->next()I

    move-result p3

    const/4 v0, 0x3

    if-ne p3, v0, :cond_4

    .line 106
    invoke-interface {p1}, Lorg/xmlpull/v1/XmlPullParser;->getDepth()I

    move-result v0

    if-le v0, p2, :cond_5

    :cond_4
    if-eq p3, v2, :cond_5

    goto :goto_2

    :cond_5
    return-void

    .line 107
    :cond_6
    :try_start_1
    new-instance p1, Landroid/view/InflateException;

    new-instance p3, Ljava/lang/StringBuilder;

    invoke-direct {p3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-interface {p2}, Landroid/content/res/XmlResourceParser;->getPositionDescription()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v0, ": No start tag found!"

    invoke-virtual {p3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p3

    invoke-direct {p1, p3}, Landroid/view/InflateException;-><init>(Ljava/lang/String;)V

    throw p1
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    :catchall_0
    move-exception p1

    .line 108
    invoke-interface {p2}, Landroid/content/res/XmlResourceParser;->close()V

    .line 109
    goto :goto_4

    :goto_3
    throw p1

    :goto_4
    goto :goto_3
.end method

.method private a(Lorg/xmlpull/v1/XmlPullParser;Landroid/view/View;)V
    .locals 4

    .line 5
    invoke-static {p1}, Landroid/util/Xml;->asAttributeSet(Lorg/xmlpull/v1/XmlPullParser;)Landroid/util/AttributeSet;

    move-result-object v0

    .line 6
    :goto_0
    :try_start_0
    invoke-interface {p1}, Lorg/xmlpull/v1/XmlPullParser;->next()I

    move-result v1

    const/4 v2, 0x2

    if-eq v1, v2, :cond_0

    const/4 v3, 0x1

    if-eq v1, v3, :cond_0

    goto :goto_0

    :cond_0
    if-ne v1, v2, :cond_2

    .line 7
    invoke-interface {p1}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v1

    const-string v2, "merge"

    .line 8
    invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_1

    .line 9
    invoke-direct {p0, p1, v0, p2}, Lcom/estrongs/android/pop/esclasses/i;->b(Lorg/xmlpull/v1/XmlPullParser;Landroid/util/AttributeSet;Landroid/view/View;)V

    goto :goto_1

    .line 10
    :cond_1
    invoke-direct {p0, v1, v0, p2}, Lcom/estrongs/android/pop/esclasses/i;->a(Ljava/lang/String;Landroid/util/AttributeSet;Landroid/view/View;)Landroid/view/View;

    move-result-object p2

    .line 11
    invoke-direct {p0, p1, v0, p2}, Lcom/estrongs/android/pop/esclasses/i;->b(Lorg/xmlpull/v1/XmlPullParser;Landroid/util/AttributeSet;Landroid/view/View;)V

    :goto_1
    return-void

    .line 12
    :cond_2
    new-instance p2, Landroid/view/InflateException;

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-interface {p1}, Lorg/xmlpull/v1/XmlPullParser;->getPositionDescription()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, ": No start tag found!"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-direct {p2, v0}, Landroid/view/InflateException;-><init>(Ljava/lang/String;)V

    throw p2
    :try_end_0
    .catch Lorg/xmlpull/v1/XmlPullParserException; {:try_start_0 .. :try_end_0} :catch_1
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    move-exception p2

    .line 13
    new-instance v0, Landroid/view/InflateException;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    .line 14
    invoke-interface {p1}, Lorg/xmlpull/v1/XmlPullParser;->getPositionDescription()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p1, ": "

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 15
    invoke-virtual {p2}, Ljava/io/IOException;->getMessage()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-direct {v0, p1}, Landroid/view/InflateException;-><init>(Ljava/lang/String;)V

    .line 16
    invoke-virtual {v0, p2}, Landroid/view/InflateException;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable;

    .line 17
    throw v0

    :catch_1
    move-exception p1

    .line 18
    new-instance p2, Landroid/view/InflateException;

    invoke-virtual {p1}, Lorg/xmlpull/v1/XmlPullParserException;->getMessage()Ljava/lang/String;

    move-result-object v0

    invoke-direct {p2, v0}, Landroid/view/InflateException;-><init>(Ljava/lang/String;)V

    .line 19
    invoke-virtual {p2, p1}, Landroid/view/InflateException;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable;

    .line 20
    goto :goto_3

    :goto_2
    throw p2

    :goto_3
    goto :goto_2
.end method

.method private b(Lorg/xmlpull/v1/XmlPullParser;Landroid/util/AttributeSet;Landroid/view/View;)V
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lorg/xmlpull/v1/XmlPullParserException;,
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    invoke-interface {p1}, Lorg/xmlpull/v1/XmlPullParser;->getDepth()I

    move-result v0

    .line 2
    :goto_0
    invoke-interface {p1}, Lorg/xmlpull/v1/XmlPullParser;->next()I

    move-result v1

    const/4 v2, 0x3

    if-ne v1, v2, :cond_0

    .line 3
    invoke-interface {p1}, Lorg/xmlpull/v1/XmlPullParser;->getDepth()I

    move-result v2

    if-le v2, v0, :cond_6

    :cond_0
    const/4 v2, 0x1

    if-eq v1, v2, :cond_6

    const/4 v2, 0x2

    if-eq v1, v2, :cond_1

    goto :goto_0

    .line 4
    :cond_1
    invoke-interface {p1}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v1

    const-string v2, "requestFocus"

    .line 5
    invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_2

    goto :goto_0

    :cond_2
    const-string v2, "include"

    .line 6
    invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_4

    .line 7
    invoke-interface {p1}, Lorg/xmlpull/v1/XmlPullParser;->getDepth()I

    move-result v1

    if-eqz v1, :cond_3

    .line 8
    invoke-direct {p0, p1, p2, p3}, Lcom/estrongs/android/pop/esclasses/i;->a(Lorg/xmlpull/v1/XmlPullParser;Landroid/util/AttributeSet;Landroid/view/View;)V

    goto :goto_0

    .line 9
    :cond_3
    new-instance p1, Landroid/view/InflateException;

    const-string p2, "<include /> cannot be the root element"

    invoke-direct {p1, p2}, Landroid/view/InflateException;-><init>(Ljava/lang/String;)V

    throw p1

    :cond_4
    const-string v2, "merge"

    .line 10
    invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_5

    .line 11
    invoke-direct {p0, v1, p2, p3}, Lcom/estrongs/android/pop/esclasses/i;->a(Ljava/lang/String;Landroid/util/AttributeSet;Landroid/view/View;)Landroid/view/View;

    move-result-object v1

    .line 12
    invoke-direct {p0, p1, p2, v1}, Lcom/estrongs/android/pop/esclasses/i;->b(Lorg/xmlpull/v1/XmlPullParser;Landroid/util/AttributeSet;Landroid/view/View;)V

    goto :goto_0

    .line 13
    :cond_5
    new-instance p1, Landroid/view/InflateException;

    const-string p2, "<merge /> must be the root element"

    invoke-direct {p1, p2}, Landroid/view/InflateException;-><init>(Ljava/lang/String;)V

    throw p1

    :cond_6
    return-void
.end method


# virtual methods
.method public a(ILandroid/view/View;)V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/esclasses/i;->a:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getLayout(I)Landroid/content/res/XmlResourceParser;

    move-result-object p1

    .line 2
    :try_start_0
    invoke-direct {p0, p1, p2}, Lcom/estrongs/android/pop/esclasses/i;->a(Lorg/xmlpull/v1/XmlPullParser;Landroid/view/View;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 3
    invoke-interface {p1}, Landroid/content/res/XmlResourceParser;->close()V

    return-void

    :catchall_0
    move-exception p2

    invoke-interface {p1}, Landroid/content/res/XmlResourceParser;->close()V

    .line 4
    throw p2
.end method
